package com.example.dbsample;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import com.example.dbsample.annotation.PgEnable;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(
        //扫描配置
        scanBasePackages = {"com.example"}, exclude = {
        DruidDataSourceAutoConfigure.class, DynamicDataSourceAutoConfiguration.class

        //})
        //RedisAutoConfiguration.class,
        , ElasticsearchDataAutoConfiguration.class})
@EnableApolloConfig
@PgEnable
@EnableScheduling
//@MapperScan(basePackages = {"com.example.springsample.mapper"})
//@ComponentScan(basePackages = "com.example")
@EnableFeignClients(basePackages = {"com.example.dbsample.service.feign"})
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
